import { Module } from '@nestjs/common'
import { TypeOrmModule } from '@nestjs/typeorm'
import { StudentEntity } from './entities/student.entity'
import { StudentClassEntity } from './entities/student-class.entity'
import { StudentExpireLogEntity } from './entities/student-expire-log.entity'
import { StudentController } from './student.controller'
import { StudentService } from './student.service'
import { ClassEntity } from '~/modules/admin/manage/class/entities/class.entity'

@Module({
  imports: [
    TypeOrmModule.forFeature([
      StudentEntity, 
      StudentClassEntity, 
      StudentExpireLogEntity,
      ClassEntity
    ]),
  ],
  controllers: [StudentController],
  providers: [StudentService],
  exports: [StudentService],
})
export class StudentModule {}
